<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<table width="100%" border="0" cellpadding="5" cellspacing="0" >
  <tr>
    <td width="3%" align="left" ><img src="{tpl_path}images/forward.jpg" /></td>
    <td width="97%" align="left" >您现在的位置：<a href="<?php echo site_url(CTL_FOLDER."product");?>">全部产品</a> &gt; 产品回收站</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:solid 1px #3C4952; margin-bottom:5px; margin-top:5px">
  <tr>
    <td height="24" align="left" ><?php $this->load->view(TPL_FOLDER.'search');?></td>
  </tr>
</table>
<form method="post" name="list_form" id="list_form">
<table width="100%" cellspacing="0" class="widefat">
    <thead>
      <tr id="trth">
        <th width="5%"><input type="checkbox" onclick="check_box(this.form.rd_id)" /></th>
        <th width="17%">缩略图</th>
        <th width="28%" id="title">标题</th>
        <th width="15%">所属分类</th>
        <th width="11%">点击</th>
        <th width="13%">发布日期</th>
        <th width="11%">操作</th>
      </tr>
    </thead>
    <tfoot>
    </tfoot>
    <tbody id="check_box_id">
   <?php foreach($query as $row) {?> 
      <tr>
        <td class="rdId"><input name="rd_id[]" type="checkbox" id="rd_id" value="<?php echo $row->id;?>"></td>
        <td><img src="{tpl_path}images/loading.gif" rel="{root_path}<?php echo $row->small_pic_path;?>" border="0" class="jq_pic_loading"  /></td>
        <td><div class="celltext"><?php echo $row->title;?></div></td>
        <td><?php echo $row->cat_name;?></td>
        <td><?php echo $row->hits;?></td>
        <td><?php echo date("Y-m-d",$row->create_date);?></td>
        <td><a href="<?php echo site_url(CTL_FOLDER."product/edit_record/".$row->id);?>?url=<?php echo get_curren_url();?>">修改</a></td>
      </tr>
     <?php }?>  
    </tbody>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding-top:5px"><select name="action_url" id="action_url">
  <option value="" style="color:#FF0000">-选择操作-</option>
  <option value="<?php echo site_url(CTL_FOLDER."product/del_record");?>">删除</option>
  <option value="<?php echo site_url(CTL_FOLDER."product/trash_back");?>">还原</option>
  </select>&nbsp; <input type="button" name="submit_list_button" class="button-style2" onclick="submit_list_form(this.form,this)" id="submit_list_button" value="执行操作" />  </td>
    <td align="right"><?php echo $paginate;?></td>
  </tr>
</table>
</form>
<script language="javascript">
$(function(){
	$("div.celltext").edit_table({
		param:{'table':'weisu_product'}
	});
});
</script>
<?php $this->load->view(TPL_FOLDER."footer");?>
